Auto merge of #2579 - alexcrichton:robust-submodule, r=brson
authorbors <bors@rust-lang.org>
Wed, 20 Apr 2016 18:51:57 +0000 (11:51 -0700)
committerbors <bors@rust-lang.org>
Wed, 20 Apr 2016 18:51:57 +0000 (11:51 -0700)
Remove submodule directory before cloning

If the directory is in a corrupt state that caused an existing repository to not
successfully open, then we'll want to blow it away anything that already exists
to ensure we start from a clean slate.

Closes #2567

1  2 
src/cargo/sources/git/utils.rs

Simple merge